package com.hhd.flow.engine.cmd.impl.virtual;

import com.alibaba.fastjson.JSONObject;
import com.hhd.flow.engine.utils.CommonUtils;
import com.hhd.flow.engine.vo.FlowModel;
import com.hhd.flow.engine.vo.FlowUser;
import com.hhd.flow.engine.vo.UserManualSelect;
import com.hhd.flow.entity.FlowGatewayExecution;
import com.hhd.flow.entity.FlowProcessInstance;
import com.hhd.flow.entity.FlowTask;
import com.hhd.flow.entity.FlowUserTask;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class VirtualContext {
    JSONObject formModel;       //表单数据
    String formTypeId;          //单据类型
    String formId;              //单据类型
    FlowUser applyBy;           //发起人
    String processDefinitionId; //流程定义

    FlowProcessInstance processInstance;
    FlowModel flowModel;
    List<FlowUser> historyUsers = CommonUtils.newList();
    List<FlowUserTask> activeUserTasks = CommonUtils.newList();

    List<FlowTask> activeTasks = CommonUtils.newList();
    List<FlowGatewayExecution> gatewayExecutions = CommonUtils.newList();

    UserManualSelect userManualSelect;
}
